#include <iostream>
using namespace std;

void main()
{
	int fac=1;
	for(int i=1; i<=10; i++)
	{
		fac *= i;
		cout << " " << i << "! = " << fac << "\n";
	}
}